<?php
require "./template/header.php";
require "./function/function_tool.php";
?>
	<body>
		<div id="warp">
			<div id="header">
				<div id="logo">
					<a href="./">
						<img border="0" src="./images/logo.png">
					</a>
				</div>
			</div>
			<div id="content">
				<div id="tool-content">
					<div id="tool-content-menu">
							<ul>
								<li>工具箱:</li>
								<li><a href="./help.php">挂Q帮助</a></li>
								<li><a id="tool-content-menu-on">挂Q查询</a></li>
								<li><a href="./count.php">网站统计</a></li>
								<li><a href="./forgotpassword.php">找回密码</a></li>
								<li><a href="./about.php">关于我们</a></li>
								<li><a href="./" id="tool-content-gohome">去首页</a></li>
							</ul>
					</div>
					<div id="tool-content-main">
						<div id="tool-content-main-search">
							<div id="tool-content-main-search-tou">
								<form action="" method="get">
									QQ号码:
									<input type="text" name="qq" />
									<button type="submit">查询</button>
								</form>
							</div>
							<div id="tool-content-main-search-main">
								<table>
									<tr>
										<td>
											QQ头像
										</td>
										<td>
											QQ号码
										</td>
										<td>
											当前状态
										</td>
										<td>
											是否在本站
										</td>
										<td>
											强制对话
										</td>
										<td>
											QQ空间
										</td>
									</tr>
									
									<?php
									if (isset($_GET['qq'])){
										if($_GET['qq']!=""){
											echo searchpage($_GET['qq']);
										}else{
											echo searchpage("1976446789");
										}
									}else{
									echo searchpage("1976446789");
									}
									?>
									
								</table>
							</div>
						</div>
					</div>
				</div>
			</div>
			<div id="footer">
<?php 
require "./template/footer.php";
?>